package org.bwf.obj.bo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID;

@Data
public class OrderCreateBO {

    private String orderNo;

    private Date orderTime;

    private String userToken;

    private Integer orderCinemaId;

    private String orderCinemaName;

    private Integer orderFilmId;

    private String orderFilmName;

    private String orderWdDate;

    private String orderWtBegintime;

    private String orderWtEndtime;

    private String orderWtHalls;

    private BigDecimal orderCost;

    private String orderSites;

    private String orderWtId;

    public OrderCreateBO(){
        // 订单的id好正确的话，应该有自己的生成算法，使用一些成熟 雪花算法
        // UUID 全球唯一，但是算的过程比较慢
        this.orderNo = UUID.randomUUID().toString();
        this.orderTime = new Date();
    }
}
